<link href="${rc.getContextPath()}/static/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<div class="pageContent">
    <form rel="pagerForm" method="post" action="${rc.getContextPath()}/user/selectRole" onsubmit="return dwzSearch(this, 'dialog');">
        <div class="pageHeader">
            <div>
                <div style="float: left; height: 26px; width: 250px;">
                    <label id="roleCode"><@label key="roleCode.C,colon">角色编码：</@label></label> <input type="text" name="roleCode" value="${condition.roleCode!''}" />
                </div>
                <div style="float: left; height: 26px; width: 250px;">
                    <label id="roleText"><@label key="roleText.C,colon">角色描述：</@label></label> <input type="text" name="roleText" value="${condition.roleText!''}" />
                </div>

                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>


            </div>
        </div>
    </form>

    <div class="pageFormContent" >
        <table class="table border" width="100%" layoutH="145">
            <thead>
                <tr>
                    <th width="30"><input type="checkbox" class="checkboxCtrl" group="roleId" /></th>
                    <th width="100"><@label key="roleCode.C">角色编码</@label></th>
                    <th width="100"><@label key="roleText.C">角色描述</@label></th>
                    <th width="100"><@label key="memo.C">备注</@label></th>
                </tr>
            </thead>
            <tbody>
                <#if page??><#if (page.data?size>0)> <#list page.data as role>
                <tr target="role_code" rel="${role.roleCode!''}">
                    <td><input type="checkbox" name="roleId" value="{id:'${role.roleCode!''}', name:'<@json_escape>${role.roleText!''}</@json_escape>'}" /></td>
                    <td>${role.roleCode!''}</td>
                    <td>${role.roleText!''}</td>
                    <td>${role.memo!''}</td>
                </tr>
                </#list> <#else>
                <tr target="role_id">
                    <td colspan="3" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
                </tr>
                </#if> <#else>
                <tr target="role_id">
                    <td colspan="3" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
                </tr>
                </#if>
            </tbody>
        </table>
        <#include "/common/dialogPanelBar.html">
    </div>
</div>
</div>
<div class="formBar">
    <ul>
        <li><div class="buttonActive">
                <div class="buttonContent">
                    <button type="button" multLookup="roleId" warn="请选择角色">确定</button>
                </div>
            </div></li>
        <li>
            <div class="buttonActiveGrey">
                <div class="buttonContent">
                    <button class="close" type="button"><@label key="close.B">关闭</@label></button>
                </div>
            </div>
        </li>

    </ul>
</div>